from cnocr import CnOcr
from datetime import datetime
import time
# 将来简化一点代码
def sleep(s):
    # 唯一一个地方的例外
    time.sleep(s)
    return

print(datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f"))
ocr = CnOcr()
for i in range(0,1):
    res = ocr.ocr('./percentage100.png')
    # res = ocr.ocr('../opencv/test2.jpg')
    # print(res)
    for list in res:
        print(list)
    print(datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f"))
    sleep(1)


